Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix capsule-cylinder collision in godot physics #47084

Merged

Conversation

pouleyKetchoupp
Copy link
Contributor

Test specific axes before falling back to GJK-EPA algorithm to get more accurate separation axes for common cases, the same way it's done for cylinder-cylinder collision.

Fixes issues from #47067 (comment) & #47067 (comment)

Test specific axes before falling back to GJK-EPA algorithm to get more
accurate separation axes for common cases, the same way it's done for
cylinder-cylinder collision.
@akien-mga akien-mga merged commit 3651406 into godotengine:master Mar 17, 2021
@akien-mga
Copy link
Member

Thanks!

@e344fde6bf
Copy link
Contributor

Still seems to be a minor issue when you cross one of the axes on the side of the cylinder (z-axis in local coordinates):

cylinder-capsule-z-axis.mp4

@pouleyKetchoupp pouleyKetchoupp deleted the cylinder-capsule-collision-fix branch March 18, 2021 14:36
@pouleyKetchoupp
Copy link
Contributor Author

@e344fde6bf I'm not able to reproduce this issue with a modified version of your MRP from #47058. Could you please open an issue for this one with a MRP, and also add a MRP for #47094, #47095 and #47096? It would make it easier to track and test by anybody, especially if only some of these issues remain later.

@e344fde6bf
Copy link
Contributor

@pouleyKetchoupp

I've uploaded my test world here https://github.com/e344fde6bf/godot-physics-sandbox which should be helpful for testing theses bugs. I'll add a link to it in the issues, and try to get a minimal example latter.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants